#!/bin/bash
echo -----------------------------------------------------
echo 邻接表法
echo ----------------------------------------------------
echo 1 6 16  a 1 b 2 c 3 d 4 e 5 f 6    a b 1 a c 2 a d 3 a e 4 a f 5  b a 6  b c 8 b d 9 b e 10 b f 11 f e 7 c a 12 c b 13  c d 15 c e 16 c f 17    c d   a  | ./test
echo 
echo ------------------------------------------------------
echo 邻接矩阵法
echo ------------------------------------------------------
echo 2 6 16  a 1 b 2 c 3 d 4 e 5 f 6    a b 1 a c 2 a d 3 a e 4 a f 5  b a 6  b c 8 b d 9 b e 10 b f 11 f e 7 c a 12 c b 13  c d 15 c e 16 c f 17    c d   a  | ./test
echo
echo -------------------------------------------------------
echo 系统自动选择
echo -------------------------------------------------------
echo 0 6 16  a 1 b 2 c 3 d 4 e 5 f 6    a b 1 a c 2 a d 3 a e 4 a f 5  b a 6  b c 8 b d 9 b e 10 b f 11 f e 7 c a 12 c b 13  c d 15 c e 16 c f 17    c d   a  | ./test
echo



